package com.bob.blogs.controller;

import com.bob.blogs.service.IBlogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author bob
 * @create 2019-07-05
 */
@RestController
@RequestMapping(value = "/blog")
public class BlogRestController {
    @Autowired
    private IBlogService iBlogService;

    @GetMapping("/list")
    public Object getBlogList(){
        return iBlogService.getAllBlog();
    }
}
